home *** CD-ROM | disk | FTP | other *** search
- Path: news.pix.za!usenet
- From: js000021@pixie.co.za (Smit JS)
- Newsgroups: comp.lang.c++
- Subject: Re: Debugging C/C++ Programs Via Borland Debugger Utilities.
- Date: Fri, 12 Jan 1996 09:38:42 GMT
- Organization: PiX - Proxima information X-change
- Message-ID: <4d5obs$mu6@hawk.pix.za>
- References: <4crssu$4uj@netaxs.com>
- NNTP-Posting-Host: 196.23.60.109
- X-Newsreader: Forte Free Agent 1.0.82
-
- rvaughn@pacsibm.org (RussellMania) wrote:
-
- >Hello All,
-
- >I am gaining some experience with Borland c/c++ and I can do some
- >basic debugging with the step over/step through debug functions.
-
- >These functions are fine, but I wonder if a function exists to step
- >through an program statement or expression on an operator by operator
- >basis (is this even possible?)
-
- >TIA
- Hi,
- Partly,yes. For a statement like
- for(n=0;n<10;n++)dothis; simply split the line in the source:
- for(n=0;n<10;n++)
- dothis; and the debugger will jump from line to line when you
- press the key while executing the function.
- Also if you have a statement like:
- if(n)return 0; you cannot have a breakpoint on the return.
- If you split the line:
- if(n)
- return 0;
- now you can have a breakpoint on the return instead of every time it
- is tested. This works in TD2 and 3, I have no experience of later
- versions.
- Also important is how to skip a statement. (Again in TD3)
- Put the cursor where you want to go.
- Then Alt VC to get the CPU screen.
- Then Control-N to jump to the new position.
- Then ALT-F3 to get rid of the CPU screen, and you have jumped.
- Regards
- Johan Smit
- js000021@pixie.co.za
-
-
-